package com.ywy.service;

import com.ywy.common.rest.Result;
import com.ywy.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ywy.shiro.AccountProfile;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ywy
 * @since 2021-12-24
 */
public interface UserService extends IService<User> {
    /**
     * 用户注册
     * @param user
     */
    Result register(User user);

    /**
     * 用户登录
     * @param email
     * @param password
     * @return
     */
    AccountProfile login(String email, String password);
}
